<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/compile.js"></script>
    <script src="./js/mvvm.js"></script>
    <script src="./js/observer.js"></script>
    <script src="./js/watcher.js"></script>
</head>
<body>
    <div id="app">
        <button v-on:click="clickHnadler">按钮</button>
    </div>

    <script>

        const vm = new MVVM({
            el: '#app',
            data: {}, // 必须配置data选项,不配置报错
            methods: {
                clickHnadler() {
                    console.log('我爱你高圆圆')
                }
            }
        })


    </script>
</body>
</html>